require('../css/commCss/normalize.css')
require('../css/commCss/reset.css')
require('../css/commCss/property.css')
require('../css/commCss/basic.css')
require('../libs/iconfont/iconfont.css')
require('../css/circleVicinity.less')

const utilButtomNav = require('../util/util')

document.addEventListener('DOMContentLoaded', function () {
    let pBox = document.querySelector('.text')
    //引入组件
    utilButtomNav.ButtomNav('circle', '-vicinity')

    //“...全部”按钮渲染函数
    function renderData(ele) {
        let span = document.createElement('span')
        span.textContent = '...全部'
        span.style.color = 'rgba(0, 0, 0, 0.4)'
        ele.append(span)
    }
    renderData(pBox)

    //通过事件委派为“...全部”按钮添加点击事件
    pBox.addEventListener('click',function(e){
        let x = e.target
        if(x.nodeName === 'SPAN'){
            console.log(1);
        }
    })



})